<%@ page import="top.xuwuqiang.study.jacawebjdbc.dao.TbClassDAO" %><%--
  Created by IntelliJ IDEA.
  User: 17505
  Date: 2024/5/20
  Time: 10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除班级</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String sid=request.getParameter("id");
//    转换字符串数值内容的数
    Integer id=Integer.parseInt(sid);
//    删除班级
TbClassDAO.delete(id);
%>

要删除的id为<%=sid%>>

<script>
    alert("删除成功")
location.href="list.jsp"
</script>


</body>
</html>
